import { createStore } from "vuex";
import mutations from "./mutations";
export default createStore({
  state: {
    cartList: [], //购物车数据
    isBuy: false, //控制下方删除和全选状态栏的状态
    isIn: false, //控制购物车头部右侧‘编辑’与‘完成’文字的切换
    orderList: [], //订单数据
    orderListEnd: [], //拼接后的订单数据
    userAddress: [
      {
        id: 1001,
        name: "jason",
        tel: "15874859686",
        province: "广东省",
        city: "深圳市",
        county: "南山区",
        addressDetail: "深圳湾",
        isDefault: true,
        areaCode: "110101",
      },
      {
        id: 1002,
        name: "allen",
        tel: "15874859685",
        province: "湖北省",
        city: "武汉市",
        county: "武昌区",
        addressDetail: "黄鹤楼",
        isDefault: false,
        areaCode: "110101",
      },
    ],
  },
  mutations,
});
